package com.suncmf.demo.controller;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * Created by zhanghua on 2018/8/24.
 */
@RestController
public class DemoController {



    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String index() {
        return "PATH /index21";
    }


    @RequestMapping(value = "/path", method = RequestMethod.GET)
    public String path() {
        return "path";
    }

}


